﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DiskContent.aspx.cs" Inherits="DiskGallery.WebForm1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>
        <%= DiskId %></title>
    <style type="text/css">
        .style2
        {
            width: 121px;
        }
        .style3
        {
            width: 273px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    </div>
    <p>
        <asp:HyperLink ID="lnkBack" runat="server" NavigateUrl="~/Default.aspx">Main</asp:HyperLink>
    </p>
    <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
    <p>
    </p>
    <table class="tbDisk"> 
        <tr>
            <td class="style2">
                Label
            </td>
            <td class="style3">
                <asp:TextBox ID="txtLabel" runat="server" Width="90%" 
                    ontextchanged="txtLabel_TextChanged"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtLabel" ErrorMessage="No Label For Disk">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style2">
                Author
            </td>
            <td class="style3">
                <asp:TextBox ID="txtAuthor" runat="server" Width="90%" 
                    ontextchanged="txtAuthor_TextChanged"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtAuthor" ErrorMessage="No Disk Author">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style2">
                Content Name
            </td>
            <td class="style3">
                <asp:TextBox ID="txtContentName" runat="server" Width="90%" 
                    ontextchanged="txtContentName_TextChanged"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="txtContentName" ErrorMessage="No Content Name">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style2">
                Content
            </td>
            <td class="style3">
                <asp:TextBox ID="txtContent" runat="server" Width="90%" 
                    ontextchanged="txtContent_TextChanged"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="txtContent" ErrorMessage="No Disk Content Description">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style2">
                Date Creation
            </td>
            <td class="style3">
                <asp:TextBox ID="txtDateCreation" runat="server" Width="90%" MaxLength="10" 
                    ontextchanged="txtDateCreation_TextChanged"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                    ControlToValidate="txtDateCreation" ErrorMessage="No Disk Data Creation">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="txtDateCreation" ErrorMessage="Wrong Date Format" 
                    ValidationExpression="^\d{2}.\d{2}.\d{4}$">*</asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="style2">
                Size (mb)
            </td>
            <td class="style3">
                <asp:TextBox ID="txtSize" runat="server" Width="90%" 
                    ontextchanged="txtSize_TextChanged"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                    ControlToValidate="txtSize" ErrorMessage="No Disk Size">*</asp:RequiredFieldValidator>
                <asp:RangeValidator ID="RangeValidator1" runat="server" 
                    ErrorMessage="Wrong size" MaximumValue="99999999" MinimumValue="1" 
                    Type="Double" ControlToValidate="txtSize">*</asp:RangeValidator>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <asp:Button ID="btSave" runat="server" Text="Save" Width="100px" 
                    onclick="btSave_Click" />
                &nbsp;<asp:Button ID="brDelete" runat="server" onclick="Button1_Click" 
                    Text="Delete" Width="100px" CausesValidation="False" />
&nbsp;<asp:Button ID="btCancel" runat="server" Text="Cancel" Width="100px" 
                    onclick="btCancel_Click" CausesValidation="False" />
            </td>
        </tr>
    </table>
    <p>
        &nbsp;</p>
    <asp:Label ID="tesLabel" runat="server" Text=""></asp:Label>
    </form>
</body>
</html>
